package com.xiaoyu.tool.repository.user;

import com.xiaoyu.tool.entity.adminUser.AdminUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface AdminUserRepository extends JpaRepository<AdminUser,Long> {

    AdminUser findByUsernameAndPassword(String username, String password);

    AdminUser findByUsername(String username);

}



